import request from '@/utils/request'
export default {
    //分页查询文章
    queryByPage(page) {
        return request({
            url: '/article/queryArticleByPage',
            method: 'post',
            data: page,
        })
    },
    //删除文章
    deleteMultipleArticle(ids) {
        return request({
            url: '/article/deleteMultipleArticle?ids=' + ids,
            method: 'get',
        })
    },

    //恢复文章
    // recoverArticle(id) {
    //     return request({
    //         url: '/comment/recoverArticle?id=' + id,
    //         method: 'get',
    //     })
    // }

    //获取文章类型
    listType(){
        return request({
            url: '/type/listType',
            method: 'get',
        })
    },

    updateArticle(article){
        return request({
            url: '/article/updateArticle',
            method: 'post',
            data: article
        })
    }
}